package com.gy.api.video.service;

import cn.novelweb.tool.upload.local.pojo.UploadFileParam;
import com.gy.api.base.R;
import com.gy.api.common.file.domain.vo.FileVO;
import com.gy.api.video.domain.vo.FilePageSearchVO;
import com.gy.api.video.domain.vo.FilePageVO;
import com.gy.api.video.domain.vo.FileUpdateVO;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.List;

public interface IFileUploadService {


    R<FileVO> upload(MultipartFile file, String type);

    List<FilePageVO> getList(FilePageSearchVO searchVO);

    void updateName(FileUpdateVO fileUpdateVO);

    R checkFileMd5(String md5, String fileName);

    R successFile(String md5, Integer type, String fileName, Long fileSize);

    R upload_shard(UploadFileParam uploadFileParam, HttpServletRequest request);
}
